import time

sys_t = time.perf_counter()
# print("系统运行时间:", sys_t)

str_t = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
# print("字符时间:", str_t)
str_tt = '2023-03-17 15:36:39'

t = time.mktime(time.strptime(str_tt, '%Y-%m-%d %H:%M:%S'))
print(t)
